package com.winona.ui;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.taplinker.client.R;
import com.winona.Base1Activity;

public class ModifyNameAcitivity extends Base1Activity {
	private TextView title;
	private Button modify_back;
	private Button modify_sure;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.modify_name);
		findView();
		setListener();
	}

	private void findView() {
		title = (TextView) findViewById(R.id.tv_title);
		modify_back = (Button) findViewById(R.id.bt_modify_back);
		modify_sure = (Button) findViewById(R.id.bt_modify_sure);
		title.setText("名称修改");
	}

	private void setListener() {
		MyOnClickListener listener = new MyOnClickListener();

		modify_back.setOnClickListener(listener);
		modify_sure.setOnClickListener(listener);
	}

	private class MyOnClickListener implements OnClickListener {

		@Override
		public void onClick(View v) {
			switch (v.getId()) {
			case R.id.bt_modify_back:

				startActivity(PersonalSettingActivity.class);
				break;
			case R.id.bt_modify_sure:

				startActivity(PerInfoActivity.class);
				break;

			}

		}
	}

}
